package com.ruoyi.hcrf.enums;

import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class AllowOrderFieldCache {
    private static Map<String, Set<String>> cache = new ConcurrentHashMap();

    public AllowOrderFieldCache() {
    }

    public static Boolean containClass(String className) {
        return cache.containsKey(className);
    }

    public static Set<String> getFieldCacheByClass(Class<?> clazz) {
        return (Set)cache.get(clazz.getSimpleName());
    }

    public static void setCacheOnClass(Class<?> clazz, Set<String> fieldSet) {
        cache.put(clazz.getSimpleName(), fieldSet);
    }
}
